<!--
 * @Author: yushuang
 * @Date: 2024-12-03 15:58:14
 * @LastEditors: yushuang
 * @LastEditTime: 2024-12-04 16:57:35
 * @Description: 
-->
<script setup lang="ts">
import { useRouter, useRoute } from 'vue-router';
const route = useRoute();
const router = useRouter();
const params = route.params;
const path = params?.path ? decodeURIComponent(params.path as string) : '';
if (path) router.replace(path);
else router.replace('/');
</script>

<template>
  <div>
    <h1>Redirecting...</h1>
  </div>
</template>
